package com.example.easyboot;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController //这个注解为组合注解，@ResponseBody+@Controller
public class HelloController {
    @GetMapping("/hello")
    public String hello(){  //暴露访问地址:GetMapping:@RequestMapping(value="hello",requestMethod)
        return "你好 spring boot ; 我成功连接上了服务器";
    }
}
